<template>
    <div class="approval-container">
        <component :is="curComponent" :isAudit="true" />
    </div>
</template>

<script>
// import BaseAudit from './components/BaseAudit'

export default {
    components: {
        // BaseAudit,
        MaterialsAudit: () => import('./components/MaterialsAudit'),
        CheckAudit: () => import('./components/CheckAudit'),//整改回复的单独审批流程
    },
    data() {
        return {
            curComponent: ''
        }
    },
    created() {
        this.$console(this.$route.query)
        let taskDefKey = this.$route.query.taskDefKey

        if (taskDefKey === 'mm_check_rectification_received' || taskDefKey === 'mm_check_rectification_specverifier') {
            this.curComponent = 'CheckAudit'
        } else {
            this.curComponent = 'MaterialsAudit'
        }
    }
}
</script>

<style>

</style>